#ifndef _GAME_UNIT_
#define _GAME_UNIT_
#include <iostream>
#include <cstdlib>


class GameUnit
{
private:
	int width;
	int height;
	unsigned seed;
public:
	int* road;
	void setStage(int width,int height);
	static GameUnit* Unit();
	void setPoints(int,int,int,int,int,int,int,int);
	virtual int RandI();
	virtual void ResetArrays(int*);
	virtual ~GameUnit(void);
	virtual void SenceValues(int*,short);
	virtual void RandomArray(int*);
	virtual bool Horizon(int* arrays,int y,int ax,int bx);
	virtual bool Vertical(int* arrays,int x,int ay,int by);
	virtual bool OneCorner(int* arrays,int ax,int ay,int bx,int by);
	virtual bool TwoCorner(int* arrays,int ax,int ay,int bx,int by);
};
#endif

